<#compress>
<!DOCTYPE html>
<html>
	<head>
		<title>角色管理</title>
		<meta name="keywords" content="keyword1,keyword2,keyword3">
		<meta name="description" content="this is my page">
		<meta name="content-type" content="text/html; charset=UTF-8">
		<base href="${webroot}">
		<#include "../../template/easyui.ftl" parse="true" encoding="UTF-8">
		<script type="text/javascript" src="res/rbac/role.js"></script>
	</head>
	<body>
		<div class="easyui-layout" data-options="fit:true">
		
		<div data-options="region:'west',split:true,border:false"  style="width:20%;">
              <div class="easyui-panel" style="padding:5px;border: 0px">
					<ul id="grouptree"  class="easyui-tree" 
					data-options="url:'role/role_native_tree.tree',loadFilter:convertTreeAppendRoot,lines:true,onSelect:module.onSelectTree" 
					 style="padding-top: 10px;"></ul>
				</div>
        </div>
			<div data-options="region:'center',border:false">
				<table class="easyui-datagrid"  id="rolegrid"
				  		 data-options="
				  		 	striped:true,
				  		 	border:false,
				  		 	url: 'role/rolelist.grid',
				  		 	method: 'get',
				  		 	rownumbers: true,
				  		 	pagination: true,
				  		 	fit: true,
				  		 	toolbar: '#tb',
				  		 	onDblClickRow: module.onDblClickRow
				  		 ">
					<thead>
						<tr>
							<th data-options="field:'id',width:50,checkbox:true">ID</th>
							<th data-options="field:'r_name',width:250">角色名称</th>
							<th data-options="field:'r_remarks',width:300,
								formatter:function(value, row, index) {
									return Common.Util.formatter(value);
								}">备注</th>
							<th data-options="field:'r_cdate',width:180">创建时间</th>
							<th data-options="field:'r_status',width:100,align:'center',
								formatter:formatterStatus">状态</th>
							
						</tr>
					</thead>
				</table>
				<div id="tb" style="padding:5px;height:auto">
					<div style="margin-bottom:5px">
						角色名称: <input id="rolename" class="easyui-textbox" data-options="prompt:'输入关键字进行查询'" style="width:140px;">
						<a href="javascript:void(0);" class="easyui-linkbutton" iconCls="icon-search" onclick="module.queryDatagrid();">查询</a>
						<a href="javascript:void(0);" class="easyui-linkbutton" iconCls="icon-reload" onclick="module.refreshDatagrid();">刷新</a>
						<br>
						<a href="javascript:void(0);" class="easyui-linkbutton" plain="true" iconCls="icon-add" action="add" onclick="module.openDialog();">新增</a>
						<a href="javascript:void(0);" class="easyui-linkbutton" plain="true" iconCls="icon-edit" action="modify" onclick="module.modify();">修改</a>
						<a href="javascript:void(0);" class="easyui-linkbutton" plain="true" iconCls="icon-ok" action="enable" onclick="module.enable();">启用</a>
						<a href="javascript:void(0);" class="easyui-linkbutton" plain="true" iconCls="icon-cancel" action="disenable" onclick="module.disenable();">禁用</a>
						<a href="javascript:void(0);" class="easyui-linkbutton" plain="true" iconCls="icon-no" action="deleted" onclick="module.deleted();">删除</a>
						
						<!-- <a href="javascript:void(0);" class="easyui-linkbutton" plain="true" iconCls="icon-useradd"  onclick="roleRefUser();">成员管理</a> -->
					</div>
				</div>
			</div>
	
<div id="rdialog" class="easyui-dialog" title="编辑" style="width:350px;height:430px;padding: 15px;" data-options="resizable:true,modal:true,buttons:'#dlg-buttons',closed:true">
        	<form name="rfrom" id="rfrom" method="post">
							<div>
								<input type="hidden" name="id" value="">
								<font style="font-size: 14px;">角色名称:</font><br />
								<input name="RName" id="RName" maxlength="100" class="easyui-textbox"
									data-options="required:true" style="width:300px;"/><br>
							</div>
							<div>
								<font style="font-size: 14px;">上一级:</font><br />
								<input name="RParentId" id="RParentId" class="easyui-combotree" style="width:300px;"
									data-options="
										url: 'role/role_native_tree.tree',
										editable: false,
										valueField: 'id',
										textField: 'text',
										loadFilter:convertTreeAppendRoot"/><br>
							</div>
							<div>
								<font style="font-size: 14px;">权限:</font><br />
								<input name="Aid" id="authoritytree" class="easyui-combotree" style="width:300px;"
									data-options="
										url: 'authority/authority_navigate_tree.tree',
										editable: false,
										multiple:true,
										valueField: 'id',
										textField: 'text',
										cascadeCheck:false,
										loadFilter:convertTreeAppendRoot"/><br>
							</div>
							<div>
								<font style="font-size: 14px;">备注:</font><br />
								<input name="RRemarks" id="RRemarks" data-options="multiline:true" maxlength="200"
									class="easyui-textbox" style="width:300px;height:150px"/><br>
							</div>
			</form>
			</div>
			<div id="dlg-buttons">
				<a href="javascript:void(0)" class="easyui-linkbutton" onclick="module.edit();">保存</a>
				<a href="javascript:void(0)" class="easyui-linkbutton" onclick="module.closeDialog();">取消</a>
			</div>
			<!-- <div id="role_ref_user" class="easyui-dialog" title="角成员编辑" style="width:950px;height:530px;" 
				data-options="resizable:true,modal:true,closed:true">
				<iframe style="width: 100%;height: 99%;border: none;overflow: hidden;" id="if_refusers" src="role/refUsers.do"></iframe>
			</div> -->
		</div>
		
		
	</body>
	
</html>
</#compress>